﻿--[[	$Id: warrior.lua 2618 2012-09-25 19:10:32Z sdkyron@gmail.com $	]]

if GetLocale() ~= "enUS" then return end

if caelLib.playerClass ~= "WARRIOR" then return end

local _, gotMacros = ...

gM_Macros = {
	["Initiate"] = {
		show = "[help] Intervene; [nocombat] Charge; [combat] Intercept",
		body = [=[/click [noexists][nohelp, noharm][dead] gotMacros_T2
			/click [nodead] gotMacros_Range]=],
		blizzmacro = true,
		perChar = true,
		class = "WARRIOR",
	},
	["Range"] = {
		body = [=[/cast [stance:1/3, help] Defensive Stance; [stance:2, help] Intervene; [stance:2/3, nocombat, harm] Battle Stance; [stance:1, nocombat, harm] Charge; [stance:1/2, combat, harm] Berserker Stance; [stance:3, combat, harm] Intercept]=],
		class = "WARRIOR",
	},
	["Fury"] = {
		show = "Bloodthirst",
		body = [=[/cast [nostance:3] Berserker Stance
			/click [noexists][noharm][dead] gotMacros_T2
			/click [combat, harm, nodead] gotMacros_CDsAll
			/click [combat, harm, nodead] gotMacros_CDsFury
			/click [modifier, harm, nodead] gotMacros_MainFuryAoE
			/click [nomodifier, harm, nodead] gotMacros_MainFuryST]=],
		blizzmacro = true,
		perChar = true,
		class = "WARRIOR",
		spec = "2",
	},
	["MainFuryST"] = {
		body = [=[/startattack
			/castsequence reset=3 Bloodthirst, Bloodthirst, Heroic Strike, Bloodthirst, Heroic Strike]=],
		class = "WARRIOR",
		spec = "2",
	},
	["MainFuryAoE"] = {
		body = [=[/startattack
			/castsequence reset=3 Bloodthirst, Bloodthirst, Cleave, Bloodthirst, Cleave]=],
		class = "WARRIOR",
		spec = "2",
	},
	["CDsFury"] = {
		body = [=[/cast Berserker Rage
			/cast Death Wish]=],
		class = "WARRIOR",
		spec = "2",
	},
	["RBlow"] = {
		show = "Raging Blow",
		body = [=[/cast [nostance:3] Berserker Stance; Raging Blow]=],
		blizzmacro = true,
		perChar = true,
		class = "WARRIOR",
		spec = "2",
	},
	["Whirl"] = {
		show = "Whirlwind",
		body = [=[/cast [nostance:3] Berserker Stance; Whirlwind]=],
		blizzmacro = true,
		perChar = true,
		class = "WARRIOR",
	},
	["Arms"] = {
		show = "Mortal Strike",
		body = [=[/cast [nostance:3] Berserker Stance
			/click [noexists][noharm][dead] gotMacros_T2
			/click [combat, harm, nodead] gotMacros_CDsAll
			/click [combat, harm, nodead] gotMacros_CDsArms
			/click [harm, nodead] gotMacros_MainArms]=],
		blizzmacro = true,
		perChar = true,
		class = "WARRIOR",
		spec = "1",
	},
	["MainArms"] = {
		body = [=[/startattack
			/castsequence reset=4.5 Mortal Strike, Slam, Slam, Heroic Strike]=],
		class = "WARRIOR",
		spec = "1",
	},
	["CDsArms"] = {
		body = [=[/cast Berserker Rage
			/Cast Sweeping Strikes
			/cast Deadly Calm]=],
		class = "WARRIOR",
		spec = "1",
	},
	["Protection"] = {
		show = "Shield Slam",
		body = [=[/cast [nostance:2] Defensive Stance
			/click [noexists][noharm][dead] gotMacros_T2
			/click [combat, harm, nodead] gotMacros_CDsAll
			/click [combat, harm, nodead] gotMacros_CDsProtection
			/click [harm, nodead] gotMacros_Mark
			/click [harm, nodead] gotMacros_MainProtection]=],
		blizzmacro = true,
		perChar = true,
		class = "WARRIOR",
		spec = "3",
	},
	["Mark"] = {
		body = [=[/script if GetNumGroupMembers() == 0 then if GetRaidTargetIndex("target") ~= 8 then SetRaidTargetIcon("target", 8) end end]=],
		class = "WARRIOR",
		spec = "3",
	},
	["MainProtection"] = {
		body = [=[/startattack
			/cast [modifier] Shockwave
			/castsequence reset=target/combat/6 Shield Slam, Devastate, Heroic Strike]=],
		class = "WARRIOR",
		spec = "3",
	},
	["CDsProtection"] = {
		body = [=[/cast Shield Block
			/use 6]=],
		class = "WARRIOR",
		spec = "3",
	},
	["OverRev"] = {
		show = "[nostance:2] Overpower; Revenge",
		body = [=[/cast [stance:1, noequipped:Shields] Overpower; [stance:1, equipped:Shields] Defensive Stance; [stance:2, noequipped:Shields] Battle Stance; [stance:2, equipped:Shields] Revenge; [stance:3, noequipped:Shields] Battle Stance; [stance:3, equipped:Shields] Defensive Stance]=],
		blizzmacro = true,
		perChar = true,
		class = "WARRIOR",
	},
	["Rend"] = {
		show = "Rend",
		body = [=[/cast [nostance:1/2] Battle Stance; Rend]=],
		blizzmacro = true,
		perChar = true,
		class = "WARRIOR",
	},
	["MainTankAoE"] = {
		show = "Thunder Clap",
		body = [=[/castsequence reset=target/combat/6 [nostance:1/2] Battle Stance; Thunder Clap, Cleave, Cleave]=],
		blizzmacro = true,
		perChar = true,
		class = "WARRIOR",
	},
	["Taunt"] = {
		show = "Taunt",
		body = [=[/cast [nostance:2] Defensive Stance; Taunt]=],
		blizzmacro = true,
		perChar = true,
		class = "WARRIOR",
		spec = "3",
	},
	["Execute"] = {
		show = "Execute",
		body = [=[/cast [nostance:3] Berserker Stance; Execute]=],
		blizzmacro = true,
		perChar = true,
		class = "WARRIOR",
	},
	["Recklessness"] = {
		show = "Recklessness",
		body = [=[/cast [nostance:3] Berserker Stance; Recklessness]=],
		blizzmacro = true,
		perChar = true,
		class = "WARRIOR",
	},
	["Slam"] = {
		show = "Slam",
		body = [=[/stopcasting
			/cast Slam
			/stopcasting]=],
		blizzmacro = true,
		perChar = true,
		class = "WARRIOR",
	},
}